﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Hotel.Models.DataAccess;
using Hotel.Models.Entity;

namespace Hotel.Models.Services
{
    public class GroupStaffService
    {
        public static List<GroupStaff> GetListGroupStaff()
        {
            return DAGroupStaff.GetListGroupStaff(0);
        }

        public static GroupStaff GetDetailGroupStaff(int gsID)
        {
            return DAGroupStaff.GetListGroupStaff(gsID)[0];
        }

        public static bool DeleteGroupStaff(int gsID)
        {
            return DAGroupStaff.DeleteGroupStaff(gsID);
        }

        //Insert : isUpdate = false
        //Update : isUpdate = true
        public static bool SaveGroupStaff(GroupStaff gs, bool isUpdate)
        {
            return DAGroupStaff.SaveGroupStaff(gs, isUpdate);
        }
    }
}